package com.easou.ps.dk.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class GetDay {

	public static String getToday(){
		SimpleDateFormat today = new SimpleDateFormat("yyyy-MM-dd");
		return today.format(new Date());
	}
	
	public static String getYesterday(){
		Calendar cal=Calendar.getInstance();
        cal.add(Calendar.DATE,-1);
		SimpleDateFormat today = new SimpleDateFormat("yyyy-MM-dd");
		return today.format(cal.getTime());
	}
}
